package cn.pping.system.service.impl;

import cn.pping.basic.service.impl.BaseServiceImpl;
import cn.pping.org.domain.Department;
import cn.pping.org.mapper.DepartmentMapper;
import cn.pping.org.service.IDepartmentService;
import cn.pping.system.domain.DictionaryType;
import cn.pping.system.mapper.DictionaryTypeMapper;
import cn.pping.system.service.IDictionaryTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

@Service
@Transactional(readOnly = true, propagation = Propagation.SUPPORTS)
public class DictionaryTypeServiceImpl extends BaseServiceImpl<DictionaryType> implements IDictionaryTypeService {

@Autowired
private DictionaryTypeMapper dictionaryTypeMapper;
    @Override
    public void romoveByName(Long id) {
        dictionaryTypeMapper.romoveByName(id);
    }

    @Override
    public void batchRemoveByName(List<Long> ids) {
        dictionaryTypeMapper.batchRemoveByName(ids);
    }
}
